ibs
Class AddressUpdate

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ibs.AddressUpdate
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class AddressUpdate
extends javax.servlet.http.HttpServlet

Servlet implementation class for Servlet: updates the address of user.

See Also:
Serialized Form

Constructor Summary
AddressUpdate()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doGet: It innerly calls the dopost method
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doPost: It updates the old address with the new address
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddressUpdate

public AddressUpdate()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException,
                  javax.servlet.ServletException
doGet: It innerly calls the dopost method

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req: - It carries the new address entered by the client.
res - : It carries the a message tells that your address is updated successfully.
Throws:
java.io.IOException - :It ignores the exception caused by IO
javax.servlet.ServletException - :
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws java.io.IOException,
                   javax.servlet.ServletException
doPost: It updates the old address with the new address

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - :It carries the new address entered by the client.
res - :It carries the a message tells that your address is updated successfully.
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)